import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/:pathMatch(.*)',
    component: () => import("../pages/NotFoundPage.vue")
  },
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    component: () => import("../pages/Home.vue")
  },
  {
    path: '/slider',
    component: () => import("../components/slider/index.vue")
  },
  {
    path: '/tasklist',
    component: () => import("../components/task-list/index.vue")
  },
  {
    path: '/robotone',
    component: () => import("../small-apps/robot-one/index.vue")
  },
  {
    path: '/login',
    component: () => import("../components/login/index.vue")
  }
]

export default createRouter({
  routes: routes,
  history: createWebHashHistory()
})